package com.lagou.service;

import com.lagou.dao.StudentDao;
import com.lagou.entity.Student;

import java.sql.SQLException;
import java.util.List;

public class StudentService {
    private StudentDao studentDao;

    public StudentService(StudentDao studentDao) {
        this.studentDao = studentDao;
    }

    public Student login(Student student)  {
        return studentDao.login(student);
    }

    public List<Student> list()  {
        return studentDao.list();
    }

    public int add(Student student) {
        return studentDao.add(student);
    }

    public int del(Integer id)  {
        return studentDao.del(id);
    }
}
